home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 65.zip
/
BS1 part 65
/
Quarterback v5.0.adf
/
Multiple Backups
< prev
next >
Wrap
Text File
|
1992-04-25
|
2KB
|
62 lines
/* Backup multiple volumes to tape */
/* This macro assumes that the Backup Options */
/* DisplayOptionsOn/Off flag is ON if the */
/* user wants the Backup Options to appear */
/* before the backup begins, and is OFF if */
/* user does not want the Backup Options to */
/* appear before the backup begins. When OFF */
/* the options in Backup Options must be set */
/* the way the user wants these backups to */
/* occur. */
Options Results
/* Get the volumes */
SetBackupOptions DisplayOptionsOff
numVols = 0
RC = 0
Do While RC = 0
RequestText "Please enter the disk or"||"0A"x||"drawer name to backup:"
If RC = 0 Then Do
volumes.numVols = result
If Length(volumes.numVols) > 0 Then Do
If Index(volumes.numVols,":") = 0 Then
volumes.numVols = volumes.numVols||":"
If Exists(volumes.numVols) Then
numVols = numVols + 1
Else
Request1 "The disk or drawer '"||volumes.numVols||"'"||"0A"x||"does not exist."
End
Request3 "Do you wish to backup another"||"0A"x||"disk or drawer?"
End
End
/* Backup the volumes */
If RC ~= 1 Then Do
SetTapeOptions AutoRewindOff
Do i = 0 to numVols-1
Backup volumes.i
If RC ~= 0 Then Do
Request2 "An error has occurred."||"0A"x||"OK to continue with backup?"
If RC > 0 Then
Leave
Else
Iterate
End
If i = 0 Then
BackupOptions
Proceed
If RC ~= 0 Then Do
Request2 "An error has occurred."||"0A"x||"OK to continue with backup?"
If RC > 0 Then
Leave
End
End
End; Else
Request1 "User cancelled operation."
Exit